#! /bin/bash
echo abc
# chmod u+x *.sh
#/Users/codeandroid/work/Pier88Health/p8hApp/android/app/build/outputs/apk/production/release/MedLinc-production_v1.5.0_20200430_release_61.apk
# apk源文件路径
apkFilePath=$1
flavor=$2

echo "1111111111111111"
echo $1
echo $2
if [ "$flavor" = "" ]; then
    echo "no channels, user channel file"
    java -jar walle-cli-all.jar batch -f ./channel  $apkFilePath
else
    echo "use flavor params"
    #java -jar walle-cli-all.jar put -c $flavor $apkFilePath
    java -jar walle-cli-all.jar batch -c $flavor $apkFilePath

fi
